package Model.permission;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

public class Role {
    private Integer id;

    private Integer roleId;

    private String roleName;

    private String descpt;

    private String code;

    private Integer insertUid;

    @JsonFormat(pattern="yyyy-MM-dd")
    private Date insertTime;

    @JsonFormat(pattern="yyyy-MM-dd")
    private Date updateTime;

    public Role (Integer id, String roleName, String descpt, String code, Integer insertUid, Date insertTime, Date updateTime) {
        this.id = id;
        this.roleName = roleName;
        this.descpt = descpt;
        this.code = code;
        this.insertUid = insertUid;
        this.insertTime = insertTime;
        this.updateTime = updateTime;
    }

    public Role () {
        super();
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getRoleId() {
        return roleId;
    }

    public void setRoleId(Integer roleId) {
        this.roleId = id;
    }

    public String getRoleName() {
        return roleName;
    }

    public void setRoleName(String roleName) {
        this.roleName = roleName;
    }

    public String getDescpt() {
        return descpt;
    }

    public void setDescpt(String descpt) {
        this.descpt = descpt;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public Integer getInsertUid() {
        return insertUid;
    }

    public void setInsertUid(Integer insertUid) {
        this.insertUid = insertUid;
    }

    public Date getInsertTime() {
        return insertTime;
    }

    public void setInsertTime(Date insertTime) {
        this.insertTime = insertTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        return "Role{" +
            "roleId=" + roleId +
            ", roleName='" + roleName + '\'' +
            ", descpt='" + descpt + '\'' +
            ", code='" + code + '\'' +
            ", insertUid=" + insertUid +
            ", insertTime=" + insertTime +
            ", updateTime=" + updateTime +
            '}';
    }
}